# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py3-django-oscar
pkgver=2.1
pkgrel=0
pkgdesc="Domain-driven e-commerce for Django"
url="http://oscarcommerce.com/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-babel py3-django py3-django-extra-views py3-django-haystack
         py3-django-phonenumber-field py3-django-sorl-thumbnail
         py3-django-tables2 py3-django-treebeard py3-django-widget-tweaks
         py3-factory-boy py3-pillow py3-purl"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/d/django-oscar/django-oscar-$pkgver.tar.gz
	"
builddir="$srcdir/django-oscar-$pkgver"

replaces="py-django-oscar" # Backwards compatibility
provides="py-django-oscar=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="b8279eadb637fec4d9979d037fd86c61e16c3a9be518158cc14505200a8b30d1226ac17da6535a724d3f4e71789dab5b7a3583c28c6d6f8480db66a994568ed2  django-oscar-2.1.tar.gz"
